package cn.lzg.server.module.user.handler;

import cn.lzg.common.core.annotation.SocketCmd;
import cn.lzg.common.core.annotation.SocketModule;
import cn.lzg.common.core.model.Result;
import cn.lzg.common.core.session.Session;
import cn.lzg.common.module.ModuleId;
import cn.lzg.common.module.user.UserCmdId;
import cn.lzg.common.module.user.response.UserResponse;

/**
 * 用户模块处理接口
 * 
 * @author LizG
 *
 */
@SocketModule(module = ModuleId.USER)
public interface UserHandler {
	/**
	 * 登陆
	 * 
	 * @param session
	 * @param bytes
	 */
	 @SocketCmd(cmd = UserCmdId.LOGIN)
	 public Result<UserResponse> login(Session session,byte[] bytes);
	 
	 /**
	  * 注册
	  * 
	  * @param session
	  * @param bytes
	  * @return
	  */
	 @SocketCmd(cmd = UserCmdId.REGISTER)
	 public Result<UserResponse> register(Session session,byte[] bytes);

}
